import request from '@/util/request'
import { dealOpts, COURSE } from './../api_type'

// 教室
const courseGetRooms = (params, opts) => {
  return request.get(dealOpts(COURSE + '/getRooms', opts), params)
}

const courseDeleteRooms = (params, opts) => {
  return request.get(dealOpts(COURSE + '/deleteRoom', opts), params)
}

const courseModifyRooms = (params, opts) => {
  return request.get(dealOpts(COURSE + '/modifyRoom', opts), params)
}

const courseGetRoomInfo = (params, opts) => {
  return request.get(dealOpts(COURSE + '/getRoomInfo', opts), params)
}

const courseCreateRooms = (params, opts) => {
  return request.get(dealOpts(COURSE + '/createRoom', opts), params)
}

export default {
  courseGetRooms,
  courseDeleteRooms,
  courseModifyRooms,
  courseGetRoomInfo,
  courseCreateRooms
}
